<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
/* String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; */
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <%-- <base href="<%=basePath%>"> --%>
    <script type="text/javascript" src="js/jquery-1.7.2.js"></script>
  	<link href='./css/styles.css' type="text/css" rel="stylesheet" />
  	<script type="text/javascript">
  		function submit(){
			$("#surveyAddForm").submit();
		}
  	</script>
  </head>
  <body>
  	<s:include value="../../css/header.jsp"  />
  	<s:debug></s:debug>
  	<s:form id="surveyAddForm" theme="simple" action="survey-save.action" >
  		<table>
  			<tr><td>调查名称:</td><td><s:textfield name="name"></s:textfield> </td> </tr>
  			<tr><td>是否公开:</td><td><s:textfield name="isPublic"></s:textfield> </td> </tr>
  			<!-- 这样写是不可以的，因为没有提交表单，所以都是空 -->
<%--   			<tr><td><s:a href="survey-save.action">提交</s:a> </td><td><s:a href="">返回</s:a> </td> </tr> --%>
  			<tr><td><s:a href="javascript:submit()">提交</s:a> </td><td><s:a href="">返回</s:a> </td> </tr>
  		</table>
  	</s:form>
  </body>
</html>
